# coding=UTF-8
import os


def info_to_json(info):
    if isinstance(info, dict):
        return info
    elif isinstance(info, list):
        return info
    return eval(info)


def to_json(info):
    if not info:
        return info
    if isinstance(info, dict):
        return info
    elif isinstance(info, list):
        return info
    return eval(info)


# 替代python不识别的字符
def format_str(info: str):
    return info.replace('false', 'False').replace('true', 'True').replace('null', 'None')


if __name__ == '__main__':
    info_to_json('')
